﻿using BCDto.TMS.TransportSpecificServiceConfig;
using BCEntity.TMS.TransportSpecificServiceConfig;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AutoMapper;
using BCEntity.TMS.TransportSpecificServiceConfigOverWrite;
using BCDto.TMS.TransportSpecificServiceConfigOverWrite;

namespace BCService.MapperProfiles.TMS.TransportSpecificServiceConfig
{
    public  class TransportSpecificServiceConfigProfile : Profile
    {

        public TransportSpecificServiceConfigProfile()
        {
            CreateMap<TransportSpecificServiceConfigPutDto, TransportSpecificServiceConfigEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<TransportSpecificServiceConfigDto, TransportSpecificServiceConfigEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<TransportSpecificServiceConfigPutDto, TransportSpecificServiceConfigDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<TransportSpecificServiceConfigEntity, TransportSpecificServiceConfigDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<TransportSpecificServiceConfigEntity, TransportSpecificServiceConfigPutDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<TransportSpecificServiceConfigDto, TransportSpecificServiceConfigPutDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();

            CreateMap<TransportSpecificServiceConfigOverWriteRequestDto, TransportSpecificServiceConfigOverWriteEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<TransportSpecificServiceConfigOverWriteDto, TransportSpecificServiceConfigOverWriteEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<TransportSpecificServiceConfigOverWriteRequestDto, TransportSpecificServiceConfigOverWriteDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<TransportSpecificServiceConfigOverWriteEntity, TransportSpecificServiceConfigOverWriteDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<TransportSpecificServiceConfigOverWriteEntity, TransportSpecificServiceConfigOverWriteRequestDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<TransportSpecificServiceConfigOverWriteDto, TransportSpecificServiceConfigOverWriteRequestDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();


            CreateMap<TransportSpecificServiceConfigEntity,TransportSpecificServiceConfigViewDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<TransportSpecificServiceConfigOverWriteEntity, TransportSpecificServiceConfigViewDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();

            CreateMap<TransportSpecificServiceConfigOverWriteEntity, TransportSpecificServiceConfigDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();


            CreateMap<TransportSpecificServiceConfigOverWriteDto, TransportSpecificServiceConfigDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
        }
    }
}
